Book Contents

Example: Replace placeholders with any part of a tag name

When tags are addressed through a data server, the format of the tag string depends on the server. If the format is [Device]Item, the parameter file could use a placeholder to replace either of these parts, as in:

#1=Device1

#2=Carrots_Weight

If the data server syntax was Device.Folder.Tag, the parameter file could use placeholders to replace any or all of these parts at run time. The parameter file might contain:

#1=Device1

#2=Canning

#3=Peas_Weight

#4=Carrots_Weight

A tag address could replace Device with #1, Folder with #2 and Tag with #3 or #4.

See also

Create a parameter file

Replace a tag name or character string

Tag placeholders

Example: Replace placeholders with tag names